package com.ice.work.moment.tencent.service;

import com.honeybee.cloud.framework.base.exception.business.BaseBizException;
import com.ice.work.moment.tencent.facade.dto.UserDTO;
import com.ice.work.moment.tencent.facade.model.User;

/**
 * @Description
 * @Author DELL
 * @Create 2019-07-04
 * @Since 1.0.0
 */
public interface IUserService {
    /**
     * 新增登录用户
     * @param user
     * @return
     * @throws BaseBizException
     */
    Boolean addUser(User user) throws BaseBizException;

    /**
     * 查询登录用户
     * @param openId
     * @return
     * @throws BaseBizException
     */
    UserDTO findUserByOpenId(String openId) throws BaseBizException;
}
